package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Index视图控制器
 *
 * @author lilu
 * @date 2021/1/10 11:56 下午
 * @since 1.0.0
 */
@RestController
public class IndexController {

    @RequestMapping({"/", "/index"})
    public String testDemo() {
        return "Welcome to Demo，You are my friend!";
    }

}
